package com.king.cms.action;

import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.actions.DispatchAction; 
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.king.cms.db.DBOperator; 

 

public class BaseDispatchAction extends DispatchAction{
   
   private DBOperator dbo = null;
   
  
   protected DBOperator getDBOperator(HttpServletRequest request){
	     if(null == dbo)
	    	 dbo =  new DBOperator(request.getSession().getServletContext());
	     return dbo;
   }
  
   protected String getCurrentUserName(){
	    
	    return "";
  }
}
